﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public partial class TInstructDto
    {
        /// <summary>
        /// 指令Id
        /// </summary>
        public int Id { get; set; }
        public string WarehouseCode { get; set; }
        /// <summary>
        /// 垛入库存储Id
        /// </summary>
        public int? StackingStorageId { get; set; }
        /// <summary>
        /// 指令状态：0-创建，1-待执行，2-执行中，3-搬运完成，4-处理完成，5-执行异常，6-已强制取消任务
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 指令类型：1-上架、2-下架、3-移位、4-盘点指令
        /// </summary>
        public string InstructType { get; set; }
        /// <summary>
        /// 工作设备类型：1-线体;2-AGV
        /// </summary>
        public int? WorkDeviceType { get; set; }
        public int? Action { get; set; }
        /// <summary>
        /// 指令优先级
        /// </summary>
        public int Priority { get; set; }
        /// <summary>
        /// 源位置：可以是货位或者站台编号
        /// </summary>
        public string FromLocation { get; set; }
        /// <summary>
        /// 预计目的地址
        /// </summary>
        public string ExpectedToLocation { get; set; }
        /// <summary>
        /// 实际目标位置
        /// </summary>
        public string ToLocation { get; set; }
        /// <summary>
        /// 任务数量
        /// </summary>
        public decimal Qty { get; set; }
        public decimal? FinishedQty { get; set; }
        /// <summary>
        /// 按项目需求，客户定制的垛条码
        /// </summary>
        public string PalletBarcode { get; set; }
        /// <summary>
        /// WCS上报的扫描到的条码，可能与垛号不一样，用于指令完成快速查询
        /// </summary>
        public string ScanedBarcode { get; set; }
        /// <summary>
        /// 指令执行顺序
        /// </summary>
        public int InstructIndex { get; set; }
        /// <summary>
        /// 指令开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 指令完成时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        public bool? IsSendSuccess { get; set; }
        public int? RelatedOrderId { get; set; }
        public int? RelatedOrderDetailId { get; set; }
        public string DeviceCode { get; set; }
        public int? FromRoutewayId { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public int BusinessType { get; set; }
        /// <summary>
        /// 业务分组Id
        /// </summary>
        public Guid BusinessGroupId { get; set; }
        public int? BillType { get; set; }
        public string RefCellCode { get; set; }
        public bool? IsSuspend { get; set; }
        public string? LogicalCellAddr { get; set; }
        public int? CreateUserId { get; set; }
        public string? CreateUserName { get; set; }
    }
}
